<?php
class AboutModel extends Model {

    protected $_validate = array(
        array('title', '2,40', '标题长度必须为2~40位', 0, 'length'),
        array('content', 'require', '内容必须填写', 0),
    );

    protected $_auto = array(
        array('date', 'createDate', 1, 'function')
    );

}


?>